﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="selectDishesLookUp.aspx.cs"
    Inherits="SME.Food.Tricon.Web.AdminJS.MenusManage.selectDishesLookUp" %>

<%@ Import Namespace="System.Data" %>
<form id="pagerForm" method="post" action="MenuManage/selectDishesLookUp.aspx">
<input type="hidden" name="SearchDishesName" value="<%=SearchDishesName %>">
<input type="hidden" name="SearchDishesNo" value="<%=SearchDishesNo %>" />
<input type="hidden" name="pageNum" value="<%=PageNum %>" />
<input type="hidden" name="numPerPage" value="<%=NumPerPage %>" />
</form>
<div class="pageHeader">
    <form id="selectDishesLookUp" onsubmit="return navTabSearch(this);" action="/MenuManage/selectDishesLookUp.aspx"
    method="post">
    <%-- 此隐藏控件存放带回的数据的id--%>
    <div class="searchBar">
        <table class="searchContent">
            <tr>
                <td>
                    菜品名称：<input type="text" size="17" name="SearchDishesName" value="<%=SearchDishesName %>" />
                </td>
                <td>
                    菜品编号：<input type="text" size="17" name="SearchDishesNo" value="<%=SearchDishesNo %>" />
                </td>
            </tr>
        </table>
        <div class="subBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">
                                检索</button>
                        </div>
                    </div>
                </li>
                <li>
                <div class="button">
                    <div class="buttonContent">
                        <button type="button" multlookup="ids" lookupgroup="empLookup" warn="请选择施用人">
                            选择带回</button>
                    </div>
                </div>
            </li>
            </ul>
        </div>
    </div>
    </form>
</div>
<div class="pageContent">
    <table class="table" nowraptd="false" width="100%" layouth="108" targettype="dialog">
        <thead>
            <tr>
                 <th>
                    <input type="checkbox" class="checkboxCtrl" group="ids" />
                </th>
                <th align="center">
                    菜品编号
                </th>
                <th align="center">
                    菜品名称
                </th>
                <th align="center">
                    单价
                </th>
               <%-- <th>
                    操作
                </th>--%>
            </tr>
        </thead>
        <tbody>
            <% if (Table != null)
               {
                   foreach (DataRow dr in Table.Rows)
                   { %>
            <tr lookupgroup="empLookup" multlookup="ids" ondblclick="$.bringBack({DishesNo:'<%=dr["Dishes_No"] %>'});">
                <td>
                    <input name="ids" type="checkbox" value="{DishesNo:'<%=dr["Dishes_No"] %>'}" />
                </td>
                <td align='center'>
                    <%=dr["Dishes_No"]%>
                </td>
                <td align='center'>
                    <%=dr["Dishes_Name"] %>
                </td>
                <td align='center'>
                    <%=dr["Dishes_Price"]%>
                </td>
               <%-- <td>
                    <a class="btnSelect" href="javascript:$.bringBack({DishesNo:'<%=dr["Dishes_No"] %>'})" multlookup="ids" lookupgroup="empLookup"></a>
                </td>--%>
            </tr>
            <% }
               } %>
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共${totalCount}条</span>
        </div>
        <div class="pagination" targettype="navTab" totalcount="200" numperpage="20" pagenumshown="10"
            currentpage="1">
        </div>
    </div>
</div>
